<!DOCTYPE HTML>
<!-- Test for crbug.com/375765: test passes if a green square is drawn. -->
<script src="../../../resources/run-after-layout-and-paint.js"></script>
<style>
  html {
    zoom: 2.2;
  }
  * {
    margin: 0;
    padding: 0;
  }
  img {
    width: 50px;
    height: 50px;
  }
</style>
<script>
if (window.testRunner)
  testRunner.waitUntilDone();
onload = function() {
  if (window.testRunner && window.internals) {
    targetImage.onload = function() {
      requestAnimationFrame(function() {
        internals.advanceImageAnimation(targetImage);
        requestAnimationFrame(function() {
          internals.advanceImageAnimation(targetImage);
          requestAnimationFrame(function() {
            testRunner.notifyDone();
          });
        });
      });
    };
  }
  targetImage.src='resources/animate-center.svg';
};
</script>
<img id="targetImage">
